import  request  from '@utils/request.js'
const fetchCate = (params = {}) => request.get('/getArtList', {  params })
const addOne = ( params = {})=> request.post('/addArt',params)
const getOneInfo =(id)=> request.get('/getArt',{id})
const upDateInfo = (params) => request.post('/updateArt',params)
const delArt = (id)  => request.get('/delArt',{id})
export {
    fetchCate,
    addOne,
    getOneInfo,
    upDateInfo,
    delArt
}